<div class="two_col">
    <div class="col_left">
        <div class="title">+ Where We Are?</div>
        <div class="map">
            <center>
            {{if isset($_SESSION["SETTINGS"])}}{{$_SESSION["SETTINGS"]["map"]|unescape:'html'}}{{/if}}
        </center>
    </div>
</div>
<div class="col_right">
    <div class="title">+ Product Of The Day</div>
    <div class="product_of_day">
        {{if isset($Data["ProductInHome"])}}
            <div class="product_title">
                <a href="JavaScript:">+ {{$Data["ProductInHome"]->ProductName|truncate:20:"..."}} - 
                    <span class="product_price">${{$Data["ProductInHome"]->UnitPrice*90/100}}</span>
                </a>
            </div>
            <div class="product_img"><center><a href="">
                        <img alt="product" width="256" align="middle" src="{{$Data["ProductInHome"]->Image|escape:'html'}}" /></a></center></div>
            <div class="product_info">
                <img src="{{base_url()}}PushClimb/images/discount_tag.png"/>
                <div class="add_butt" onclick="addToCart('{{$Data["ProductInHome"]->Alias}}')" style="padding-top: 4px;cursor: pointer;float: right">
                    <img src="http://pushclimbing.com/PushClimb/images/add_butt.gif">
                </div>
            </div>
        {{/if}}
    </div>
    <div class="shopping_butt"><a href="{{base_url('shop')}}"><img alt="go shopping" src="{{base_url()}}PushClimb/images/shopping_butt.gif" /></a></div>
    <div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<script>
    function addToCart(Alias){
        if(isrunning)return;
        var url,data;
        url="{{base_url()}}shop/addtocart/"+Alias;

        data={

        }
        isrunning=true;
        debugAjax(url,data,function(result){
            isrunning=false;
            if(result.code>=0){
                ShowNoticeDialogMessage(result.msg);
            }else{
                ShowNoticeDialogMessage(result.msg);
            }
        });
    }
</script>
